Home:ALL Converter>I am trying to set up jenkins-docker-gitlab pipeline for laravel hello-world project using freestyle project

I am trying to set up jenkins-docker-gitlab pipeline for laravel hello-world project using freestyle project

Ask Time:2020-02-24T01:22:27         Author:Suyog Nepal

Json Formatter

I have a web app running in a docker container at port 9000. I need to route the traffic to Nginx in another container in the same network to access it at port 80. How do I achieve this? I tried building an Nginx image and added Nginx.conf. But my Nginx container stops immediately after it runs.

contents of Nginx.conf file

Snippet of containers

Author:Suyog Nepal,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/60364848/i-am-trying-to-set-up-jenkins-docker-gitlab-pipeline-for-laravel-hello-world-pro
yy